package com.itmeima.controller;

import com.itmeima.service.ManagerService;
import com.itmeima.service.impl.ManagerServiceImpl;

public class ManagerController {
    private ManagerService ms = new ManagerServiceImpl();

    //登录
    public void login(String id, String name) {
        boolean flag = ms.login(id,name);
        if (flag){
            System.out.println("登陆成功!");
        }else {
            System.out.println("您输入的工号和姓名不匹配！");
            System.exit(0);
        }
    }

}
